import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter as Router, Route } from 'react-router-dom'
import App from './App'
import { permission } from './routers'

ReactDOM.render(
  // <Router>
  //   <Route path="/admin" component={App} />
  // </Router>,
  <>
    <Router>
      <Route path={permission.path} component={permission.component} />
      <Route component={App} />
    </Router>
    ,
  </>,
  document.getElementById('root')
)
